<?php

namespace app\common\model;

use app\common\basic\BaseModel;

/**
 * 部门模型
 */
class CrmFieldGroups extends BaseModel
{
    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';
    protected $table = 'vk_crm_field_groups';
    
    public function fields()
    {
        return $this->hasMany(CrmFieldConfigs::class, 'group_id');
    }
    
    
}